\(\int (d+e x) \cosh ^2(a+b x+c x^2) \, dx\) [32]

   Optimal result
   Rubi [A] (verified)
   Mathematica [A] (verified)
   Maple [A] (verified)
   Fricas [B] (verification not implemented)
   Sympy [F]
   Maxima [B] (verification not implemented)
   Giac [A] (verification not implemented)
   Mupad [F(-1)]

Optimal result

Integrand size = 19, antiderivative size = 160 \[ \int (d+e x) \cosh ^2\left (a+b x+c x^2\right ) \, dx=\frac {(d+e x)^2}{4 e}+\frac {(2 c d-b e) e^{-2 a+\frac {b^2}{2 c}} \sqrt {\frac {\pi }{2}} \text {erf}\left (\frac {b+2 c x}{\sqrt {2} \sqrt {c}}\right )}{16 c^{3/2}}+\frac {(2 c d-b e) e^{2 a-\frac {b^2}{2 c}} \sqrt {\frac {\pi }{2}} \text {erfi}\left (\frac {b+2 c x}{\sqrt {2} \sqrt {c}}\right )}{16 c^{3/2}}+\frac {e \sinh \left (2 a+2 b x+2 c x^2\right )}{8 c} \]

[Out]

1/4*(e*x+d)^2/e+1/8*e*sinh(2*c*x^2+2*b*x+2*a)/c+1/32*(-b*e+2*c*d)*exp(-2*a+1/2*b^2/c)*erf(1/2*(2*c*x+b)*2^(1/2
)/c^(1/2))*2^(1/2)*Pi^(1/2)/c^(3/2)+1/32*(-b*e+2*c*d)*exp(2*a-1/2*b^2/c)*erfi(1/2*(2*c*x+b)*2^(1/2)/c^(1/2))*2
^(1/2)*Pi^(1/2)/c^(3/2)

Rubi [A] (verified)

Time = 0.11 (sec) , antiderivative size = 160, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.316, Rules used = {5503, 5491, 5483, 2266, 2235, 2236} \[ \int (d+e x) \cosh ^2\left (a+b x+c x^2\right ) \, dx=\frac {\sqrt {\frac {\pi }{2}} e^{\frac {b^2}{2 c}-2 a} (2 c d-b e) \text {erf}\left (\frac {b+2 c x}{\sqrt {2} \sqrt {c}}\right )}{16 c^{3/2}}+\frac {\sqrt {\frac {\pi }{2}} e^{2 a-\frac {b^2}{2 c}} (2 c d-b e) \text {erfi}\left (\frac {b+2 c x}{\sqrt {2} \sqrt {c}}\right )}{16 c^{3/2}}+\frac {e \sinh \left (2 a+2 b x+2 c x^2\right )}{8 c}+\frac {(d+e x)^2}{4 e} \]

[In]

Int[(d + e*x)*Cosh[a + b*x + c*x^2]^2,x]

[Out]

(d + e*x)^2/(4*e) + ((2*c*d - b*e)*E^(-2*a + b^2/(2*c))*Sqrt[Pi/2]*Erf[(b + 2*c*x)/(Sqrt[2]*Sqrt[c])])/(16*c^(
3/2)) + ((2*c*d - b*e)*E^(2*a - b^2/(2*c))*Sqrt[Pi/2]*Erfi[(b + 2*c*x)/(Sqrt[2]*Sqrt[c])])/(16*c^(3/2)) + (e*S
inh[2*a + 2*b*x + 2*c*x^2])/(8*c)

Rule 2235

Int[(F_)^((a_.) + (b_.)*((c_.) + (d_.)*(x_))^2), x_Symbol] :> Simp[F^a*Sqrt[Pi]*(Erfi[(c + d*x)*Rt[b*Log[F], 2
]]/(2*d*Rt[b*Log[F], 2])), x] /; FreeQ[{F, a, b, c, d}, x] && PosQ[b]

Rule 2236

Int[(F_)^((a_.) + (b_.)*((c_.) + (d_.)*(x_))^2), x_Symbol] :> Simp[F^a*Sqrt[Pi]*(Erf[(c + d*x)*Rt[(-b)*Log[F],
 2]]/(2*d*Rt[(-b)*Log[F], 2])), x] /; FreeQ[{F, a, b, c, d}, x] && NegQ[b]

Rule 2266

Int[(F_)^((a_.) + (b_.)*(x_) + (c_.)*(x_)^2), x_Symbol] :> Dist[F^(a - b^2/(4*c)), Int[F^((b + 2*c*x)^2/(4*c))
, x], x] /; FreeQ[{F, a, b, c}, x]

Rule 5483

Int[Cosh[(a_.) + (b_.)*(x_) + (c_.)*(x_)^2], x_Symbol] :> Dist[1/2, Int[E^(a + b*x + c*x^2), x], x] + Dist[1/2
, Int[E^(-a - b*x - c*x^2), x], x] /; FreeQ[{a, b, c}, x]

Rule 5491

Int[Cosh[(a_.) + (b_.)*(x_) + (c_.)*(x_)^2]*((d_.) + (e_.)*(x_)), x_Symbol] :> Simp[e*(Sinh[a + b*x + c*x^2]/(
2*c)), x] - Dist[(b*e - 2*c*d)/(2*c), Int[Cosh[a + b*x + c*x^2], x], x] /; FreeQ[{a, b, c, d, e}, x] && NeQ[b*
e - 2*c*d, 0]

Rule 5503

Int[Cosh[(a_.) + (b_.)*(x_) + (c_.)*(x_)^2]^(n_)*((d_.) + (e_.)*(x_))^(m_.), x_Symbol] :> Int[ExpandTrigReduce
[(d + e*x)^m, Cosh[a + b*x + c*x^2]^n, x], x] /; FreeQ[{a, b, c, d, e, m}, x] && IGtQ[n, 1]

Rubi steps \begin{align*} \text {integral}& = \int \left (\frac {1}{2} (d+e x)+\frac {1}{2} (d+e x) \cosh \left (2 a+2 b x+2 c x^2\right )\right ) \, dx \\ & = \frac {(d+e x)^2}{4 e}+\frac {1}{2} \int (d+e x) \cosh \left (2 a+2 b x+2 c x^2\right ) \, dx \\ & = \frac {(d+e x)^2}{4 e}+\frac {e \sinh \left (2 a+2 b x+2 c x^2\right )}{8 c}+\frac {(2 c d-b e) \int \cosh \left (2 a+2 b x+2 c x^2\right ) \, dx}{4 c} \\ & = \frac {(d+e x)^2}{4 e}+\frac {e \sinh \left (2 a+2 b x+2 c x^2\right )}{8 c}+\frac {(2 c d-b e) \int e^{-2 a-2 b x-2 c x^2} \, dx}{8 c}+\frac {(2 c d-b e) \int e^{2 a+2 b x+2 c x^2} \, dx}{8 c} \\ & = \frac {(d+e x)^2}{4 e}+\frac {e \sinh \left (2 a+2 b x+2 c x^2\right )}{8 c}+\frac {\left ((2 c d-b e) e^{2 a-\frac {b^2}{2 c}}\right ) \int e^{\frac {(2 b+4 c x)^2}{8 c}} \, dx}{8 c}+\frac {\left ((2 c d-b e) e^{-2 a+\frac {b^2}{2 c}}\right ) \int e^{-\frac {(-2 b-4 c x)^2}{8 c}} \, dx}{8 c} \\ & = \frac {(d+e x)^2}{4 e}+\frac {(2 c d-b e) e^{-2 a+\frac {b^2}{2 c}} \sqrt {\frac {\pi }{2}} \text {erf}\left (\frac {b+2 c x}{\sqrt {2} \sqrt {c}}\right )}{16 c^{3/2}}+\frac {(2 c d-b e) e^{2 a-\frac {b^2}{2 c}} \sqrt {\frac {\pi }{2}} \text {erfi}\left (\frac {b+2 c x}{\sqrt {2} \sqrt {c}}\right )}{16 c^{3/2}}+\frac {e \sinh \left (2 a+2 b x+2 c x^2\right )}{8 c} \\ \end{align*}

Mathematica [A] (verified)

Time = 0.44 (sec) , antiderivative size = 177, normalized size of antiderivative = 1.11 \[ \int (d+e x) \cosh ^2\left (a+b x+c x^2\right ) \, dx=\frac {(2 c d-b e) \sqrt {2 \pi } \text {erf}\left (\frac {b+2 c x}{\sqrt {2} \sqrt {c}}\right ) \left (\cosh \left (2 a-\frac {b^2}{2 c}\right )-\sinh \left (2 a-\frac {b^2}{2 c}\right )\right )+(2 c d-b e) \sqrt {2 \pi } \text {erfi}\left (\frac {b+2 c x}{\sqrt {2} \sqrt {c}}\right ) \left (\cosh \left (2 a-\frac {b^2}{2 c}\right )+\sinh \left (2 a-\frac {b^2}{2 c}\right )\right )+4 \sqrt {c} (2 c x (2 d+e x)+e \sinh (2 (a+x (b+c x))))}{32 c^{3/2}} \]

[In]

Integrate[(d + e*x)*Cosh[a + b*x + c*x^2]^2,x]

[Out]

((2*c*d - b*e)*Sqrt[2*Pi]*Erf[(b + 2*c*x)/(Sqrt[2]*Sqrt[c])]*(Cosh[2*a - b^2/(2*c)] - Sinh[2*a - b^2/(2*c)]) +
 (2*c*d - b*e)*Sqrt[2*Pi]*Erfi[(b + 2*c*x)/(Sqrt[2]*Sqrt[c])]*(Cosh[2*a - b^2/(2*c)] + Sinh[2*a - b^2/(2*c)])
+ 4*Sqrt[c]*(2*c*x*(2*d + e*x) + e*Sinh[2*(a + x*(b + c*x))]))/(32*c^(3/2))

Maple [A] (verified)

Time = 0.16 (sec) , antiderivative size = 231, normalized size of antiderivative = 1.44

method result size
risch \(\frac {e \,x^{2}}{4}+\frac {d x}{2}+\frac {\operatorname {erf}\left (\sqrt {2}\, \sqrt {c}\, x +\frac {b \sqrt {2}}{2 \sqrt {c}}\right ) \sqrt {2}\, \sqrt {\pi }\, d \,{\mathrm e}^{-\frac {4 a c -b^{2}}{2 c}}}{16 \sqrt {c}}-\frac {{\mathrm e}^{-2 a} e \,{\mathrm e}^{-2 x \left (c x +b \right )}}{16 c}-\frac {{\mathrm e}^{-2 a} e b \sqrt {\pi }\, {\mathrm e}^{\frac {b^{2}}{2 c}} \sqrt {2}\, \operatorname {erf}\left (\sqrt {2}\, \sqrt {c}\, x +\frac {b \sqrt {2}}{2 \sqrt {c}}\right )}{32 c^{\frac {3}{2}}}-\frac {\operatorname {erf}\left (-\sqrt {-2 c}\, x +\frac {b}{\sqrt {-2 c}}\right ) \sqrt {\pi }\, d \,{\mathrm e}^{\frac {4 a c -b^{2}}{2 c}}}{8 \sqrt {-2 c}}+\frac {{\mathrm e}^{2 a} e \,{\mathrm e}^{2 x \left (c x +b \right )}}{16 c}+\frac {{\mathrm e}^{2 a} e b \sqrt {\pi }\, {\mathrm e}^{-\frac {b^{2}}{2 c}} \operatorname {erf}\left (-\sqrt {-2 c}\, x +\frac {b}{\sqrt {-2 c}}\right )}{16 c \sqrt {-2 c}}\) \(231\)

[In]

int((e*x+d)*cosh(c*x^2+b*x+a)^2,x,method=_RETURNVERBOSE)

[Out]

1/4*e*x^2+1/2*d*x+1/16*erf(2^(1/2)*c^(1/2)*x+1/2*b*2^(1/2)/c^(1/2))/c^(1/2)*2^(1/2)*Pi^(1/2)*d*exp(-1/2*(4*a*c
-b^2)/c)-1/16*exp(-2*a)*e/c*exp(-2*x*(c*x+b))-1/32*exp(-2*a)*e*b/c^(3/2)*Pi^(1/2)*exp(1/2*b^2/c)*2^(1/2)*erf(2
^(1/2)*c^(1/2)*x+1/2*b*2^(1/2)/c^(1/2))-1/8*erf(-(-2*c)^(1/2)*x+b/(-2*c)^(1/2))/(-2*c)^(1/2)*Pi^(1/2)*d*exp(1/
2*(4*a*c-b^2)/c)+1/16*exp(2*a)*e/c*exp(2*x*(c*x+b))+1/16*exp(2*a)*e*b/c*Pi^(1/2)*exp(-1/2*b^2/c)/(-2*c)^(1/2)*
erf(-(-2*c)^(1/2)*x+b/(-2*c)^(1/2))

Fricas [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 777 vs. \(2 (130) = 260\).

Time = 0.27 (sec) , antiderivative size = 777, normalized size of antiderivative = 4.86 \[ \int (d+e x) \cosh ^2\left (a+b x+c x^2\right ) \, dx=\frac {2 \, c e \cosh \left (c x^{2} + b x + a\right )^{4} + 8 \, c e \cosh \left (c x^{2} + b x + a\right ) \sinh \left (c x^{2} + b x + a\right )^{3} + 2 \, c e \sinh \left (c x^{2} + b x + a\right )^{4} - \sqrt {2} \sqrt {\pi } {\left ({\left (2 \, c d - b e\right )} \cosh \left (c x^{2} + b x + a\right )^{2} \cosh \left (-\frac {b^{2} - 4 \, a c}{2 \, c}\right ) + {\left (2 \, c d - b e\right )} \cosh \left (c x^{2} + b x + a\right )^{2} \sinh \left (-\frac {b^{2} - 4 \, a c}{2 \, c}\right ) + {\left ({\left (2 \, c d - b e\right )} \cosh \left (-\frac {b^{2} - 4 \, a c}{2 \, c}\right ) + {\left (2 \, c d - b e\right )} \sinh \left (-\frac {b^{2} - 4 \, a c}{2 \, c}\right )\right )} \sinh \left (c x^{2} + b x + a\right )^{2} + 2 \, {\left ({\left (2 \, c d - b e\right )} \cosh \left (c x^{2} + b x + a\right ) \cosh \left (-\frac {b^{2} - 4 \, a c}{2 \, c}\right ) + {\left (2 \, c d - b e\right )} \cosh \left (c x^{2} + b x + a\right ) \sinh \left (-\frac {b^{2} - 4 \, a c}{2 \, c}\right )\right )} \sinh \left (c x^{2} + b x + a\right )\right )} \sqrt {-c} \operatorname {erf}\left (\frac {\sqrt {2} {\left (2 \, c x + b\right )} \sqrt {-c}}{2 \, c}\right ) + \sqrt {2} \sqrt {\pi } {\left ({\left (2 \, c d - b e\right )} \cosh \left (c x^{2} + b x + a\right )^{2} \cosh \left (-\frac {b^{2} - 4 \, a c}{2 \, c}\right ) - {\left (2 \, c d - b e\right )} \cosh \left (c x^{2} + b x + a\right )^{2} \sinh \left (-\frac {b^{2} - 4 \, a c}{2 \, c}\right ) + {\left ({\left (2 \, c d - b e\right )} \cosh \left (-\frac {b^{2} - 4 \, a c}{2 \, c}\right ) - {\left (2 \, c d - b e\right )} \sinh \left (-\frac {b^{2} - 4 \, a c}{2 \, c}\right )\right )} \sinh \left (c x^{2} + b x + a\right )^{2} + 2 \, {\left ({\left (2 \, c d - b e\right )} \cosh \left (c x^{2} + b x + a\right ) \cosh \left (-\frac {b^{2} - 4 \, a c}{2 \, c}\right ) - {\left (2 \, c d - b e\right )} \cosh \left (c x^{2} + b x + a\right ) \sinh \left (-\frac {b^{2} - 4 \, a c}{2 \, c}\right )\right )} \sinh \left (c x^{2} + b x + a\right )\right )} \sqrt {c} \operatorname {erf}\left (\frac {\sqrt {2} {\left (2 \, c x + b\right )}}{2 \, \sqrt {c}}\right ) + 8 \, {\left (c^{2} e x^{2} + 2 \, c^{2} d x\right )} \cosh \left (c x^{2} + b x + a\right )^{2} + 4 \, {\left (2 \, c^{2} e x^{2} + 4 \, c^{2} d x + 3 \, c e \cosh \left (c x^{2} + b x + a\right )^{2}\right )} \sinh \left (c x^{2} + b x + a\right )^{2} - 2 \, c e + 8 \, {\left (c e \cosh \left (c x^{2} + b x + a\right )^{3} + 2 \, {\left (c^{2} e x^{2} + 2 \, c^{2} d x\right )} \cosh \left (c x^{2} + b x + a\right )\right )} \sinh \left (c x^{2} + b x + a\right )}{32 \, {\left (c^{2} \cosh \left (c x^{2} + b x + a\right )^{2} + 2 \, c^{2} \cosh \left (c x^{2} + b x + a\right ) \sinh \left (c x^{2} + b x + a\right ) + c^{2} \sinh \left (c x^{2} + b x + a\right )^{2}\right )}} \]

[In]

integrate((e*x+d)*cosh(c*x^2+b*x+a)^2,x, algorithm="fricas")

[Out]

1/32*(2*c*e*cosh(c*x^2 + b*x + a)^4 + 8*c*e*cosh(c*x^2 + b*x + a)*sinh(c*x^2 + b*x + a)^3 + 2*c*e*sinh(c*x^2 +
 b*x + a)^4 - sqrt(2)*sqrt(pi)*((2*c*d - b*e)*cosh(c*x^2 + b*x + a)^2*cosh(-1/2*(b^2 - 4*a*c)/c) + (2*c*d - b*
e)*cosh(c*x^2 + b*x + a)^2*sinh(-1/2*(b^2 - 4*a*c)/c) + ((2*c*d - b*e)*cosh(-1/2*(b^2 - 4*a*c)/c) + (2*c*d - b
*e)*sinh(-1/2*(b^2 - 4*a*c)/c))*sinh(c*x^2 + b*x + a)^2 + 2*((2*c*d - b*e)*cosh(c*x^2 + b*x + a)*cosh(-1/2*(b^
2 - 4*a*c)/c) + (2*c*d - b*e)*cosh(c*x^2 + b*x + a)*sinh(-1/2*(b^2 - 4*a*c)/c))*sinh(c*x^2 + b*x + a))*sqrt(-c
)*erf(1/2*sqrt(2)*(2*c*x + b)*sqrt(-c)/c) + sqrt(2)*sqrt(pi)*((2*c*d - b*e)*cosh(c*x^2 + b*x + a)^2*cosh(-1/2*
(b^2 - 4*a*c)/c) - (2*c*d - b*e)*cosh(c*x^2 + b*x + a)^2*sinh(-1/2*(b^2 - 4*a*c)/c) + ((2*c*d - b*e)*cosh(-1/2
*(b^2 - 4*a*c)/c) - (2*c*d - b*e)*sinh(-1/2*(b^2 - 4*a*c)/c))*sinh(c*x^2 + b*x + a)^2 + 2*((2*c*d - b*e)*cosh(
c*x^2 + b*x + a)*cosh(-1/2*(b^2 - 4*a*c)/c) - (2*c*d - b*e)*cosh(c*x^2 + b*x + a)*sinh(-1/2*(b^2 - 4*a*c)/c))*
sinh(c*x^2 + b*x + a))*sqrt(c)*erf(1/2*sqrt(2)*(2*c*x + b)/sqrt(c)) + 8*(c^2*e*x^2 + 2*c^2*d*x)*cosh(c*x^2 + b
*x + a)^2 + 4*(2*c^2*e*x^2 + 4*c^2*d*x + 3*c*e*cosh(c*x^2 + b*x + a)^2)*sinh(c*x^2 + b*x + a)^2 - 2*c*e + 8*(c
*e*cosh(c*x^2 + b*x + a)^3 + 2*(c^2*e*x^2 + 2*c^2*d*x)*cosh(c*x^2 + b*x + a))*sinh(c*x^2 + b*x + a))/(c^2*cosh
(c*x^2 + b*x + a)^2 + 2*c^2*cosh(c*x^2 + b*x + a)*sinh(c*x^2 + b*x + a) + c^2*sinh(c*x^2 + b*x + a)^2)

Sympy [F]

\[ \int (d+e x) \cosh ^2\left (a+b x+c x^2\right ) \, dx=\int \left (d + e x\right ) \cosh ^{2}{\left (a + b x + c x^{2} \right )}\, dx \]

[In]

integrate((e*x+d)*cosh(c*x**2+b*x+a)**2,x)

[Out]

Integral((d + e*x)*cosh(a + b*x + c*x**2)**2, x)

Maxima [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 301 vs. \(2 (130) = 260\).

Time = 0.37 (sec) , antiderivative size = 301, normalized size of antiderivative = 1.88 \[ \int (d+e x) \cosh ^2\left (a+b x+c x^2\right ) \, dx=\frac {1}{16} \, {\left (\frac {\sqrt {2} \sqrt {\pi } \operatorname {erf}\left (\sqrt {2} \sqrt {-c} x - \frac {\sqrt {2} b}{2 \, \sqrt {-c}}\right ) e^{\left (2 \, a - \frac {b^{2}}{2 \, c}\right )}}{\sqrt {-c}} + \frac {\sqrt {2} \sqrt {\pi } \operatorname {erf}\left (\sqrt {2} \sqrt {c} x + \frac {\sqrt {2} b}{2 \, \sqrt {c}}\right ) e^{\left (-2 \, a + \frac {b^{2}}{2 \, c}\right )}}{\sqrt {c}} + 8 \, x\right )} d + \frac {1}{32} \, {\left (8 \, x^{2} - \frac {\sqrt {2} {\left (\frac {\sqrt {\pi } {\left (2 \, c x + b\right )} b {\left (\operatorname {erf}\left (\sqrt {\frac {1}{2}} \sqrt {-\frac {{\left (2 \, c x + b\right )}^{2}}{c}}\right ) - 1\right )}}{\sqrt {-\frac {{\left (2 \, c x + b\right )}^{2}}{c}} c^{\frac {3}{2}}} - \frac {\sqrt {2} e^{\left (\frac {{\left (2 \, c x + b\right )}^{2}}{2 \, c}\right )}}{\sqrt {c}}\right )} e^{\left (2 \, a - \frac {b^{2}}{2 \, c}\right )}}{\sqrt {c}} - \frac {\sqrt {2} {\left (\frac {\sqrt {\pi } {\left (2 \, c x + b\right )} b {\left (\operatorname {erf}\left (\sqrt {\frac {1}{2}} \sqrt {\frac {{\left (2 \, c x + b\right )}^{2}}{c}}\right ) - 1\right )}}{\sqrt {\frac {{\left (2 \, c x + b\right )}^{2}}{c}} \left (-c\right )^{\frac {3}{2}}} + \frac {\sqrt {2} c e^{\left (-\frac {{\left (2 \, c x + b\right )}^{2}}{2 \, c}\right )}}{\left (-c\right )^{\frac {3}{2}}}\right )} e^{\left (-2 \, a + \frac {b^{2}}{2 \, c}\right )}}{\sqrt {-c}}\right )} e \]

[In]

integrate((e*x+d)*cosh(c*x^2+b*x+a)^2,x, algorithm="maxima")

[Out]

1/16*(sqrt(2)*sqrt(pi)*erf(sqrt(2)*sqrt(-c)*x - 1/2*sqrt(2)*b/sqrt(-c))*e^(2*a - 1/2*b^2/c)/sqrt(-c) + sqrt(2)
*sqrt(pi)*erf(sqrt(2)*sqrt(c)*x + 1/2*sqrt(2)*b/sqrt(c))*e^(-2*a + 1/2*b^2/c)/sqrt(c) + 8*x)*d + 1/32*(8*x^2 -
 sqrt(2)*(sqrt(pi)*(2*c*x + b)*b*(erf(sqrt(1/2)*sqrt(-(2*c*x + b)^2/c)) - 1)/(sqrt(-(2*c*x + b)^2/c)*c^(3/2))
- sqrt(2)*e^(1/2*(2*c*x + b)^2/c)/sqrt(c))*e^(2*a - 1/2*b^2/c)/sqrt(c) - sqrt(2)*(sqrt(pi)*(2*c*x + b)*b*(erf(
sqrt(1/2)*sqrt((2*c*x + b)^2/c)) - 1)/(sqrt((2*c*x + b)^2/c)*(-c)^(3/2)) + sqrt(2)*c*e^(-1/2*(2*c*x + b)^2/c)/
(-c)^(3/2))*e^(-2*a + 1/2*b^2/c)/sqrt(-c))*e

Giac [A] (verification not implemented)

none

Time = 0.28 (sec) , antiderivative size = 165, normalized size of antiderivative = 1.03 \[ \int (d+e x) \cosh ^2\left (a+b x+c x^2\right ) \, dx=\frac {1}{4} \, e x^{2} + \frac {1}{2} \, d x - \frac {\frac {\sqrt {2} \sqrt {\pi } {\left (2 \, c d - b e\right )} \operatorname {erf}\left (-\frac {1}{2} \, \sqrt {2} \sqrt {c} {\left (2 \, x + \frac {b}{c}\right )}\right ) e^{\left (\frac {b^{2} - 4 \, a c}{2 \, c}\right )}}{\sqrt {c}} + 2 \, e e^{\left (-2 \, c x^{2} - 2 \, b x - 2 \, a\right )}}{32 \, c} - \frac {\frac {\sqrt {2} \sqrt {\pi } {\left (2 \, c d - b e\right )} \operatorname {erf}\left (-\frac {1}{2} \, \sqrt {2} \sqrt {-c} {\left (2 \, x + \frac {b}{c}\right )}\right ) e^{\left (-\frac {b^{2} - 4 \, a c}{2 \, c}\right )}}{\sqrt {-c}} - 2 \, e e^{\left (2 \, c x^{2} + 2 \, b x + 2 \, a\right )}}{32 \, c} \]

[In]

integrate((e*x+d)*cosh(c*x^2+b*x+a)^2,x, algorithm="giac")

[Out]

1/4*e*x^2 + 1/2*d*x - 1/32*(sqrt(2)*sqrt(pi)*(2*c*d - b*e)*erf(-1/2*sqrt(2)*sqrt(c)*(2*x + b/c))*e^(1/2*(b^2 -
 4*a*c)/c)/sqrt(c) + 2*e*e^(-2*c*x^2 - 2*b*x - 2*a))/c - 1/32*(sqrt(2)*sqrt(pi)*(2*c*d - b*e)*erf(-1/2*sqrt(2)
*sqrt(-c)*(2*x + b/c))*e^(-1/2*(b^2 - 4*a*c)/c)/sqrt(-c) - 2*e*e^(2*c*x^2 + 2*b*x + 2*a))/c

Mupad [F(-1)]

Timed out. \[ \int (d+e x) \cosh ^2\left (a+b x+c x^2\right ) \, dx=\int {\mathrm {cosh}\left (c\,x^2+b\,x+a\right )}^2\,\left (d+e\,x\right ) \,d x \]

[In]

int(cosh(a + b*x + c*x^2)^2*(d + e*x),x)

[Out]

int(cosh(a + b*x + c*x^2)^2*(d + e*x), x)